#!/bin/bash
# 练习while read line的用法
# read line 读取文件中的每一行赋值给line ,如果有多个参数 例如read f1 f2,则会将每一行按照IFS分割成多列,分别赋值
while read line
do
    echo "current line is:[$line]"
done < ./test.txt

while read f1 f2
do
    echo "current line f1:[$f1],f2:[$f2]"
done < ./test.txt

